package operations;

import Book.*;

public class PrintOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("显示书籍");
        int currentSize = bookList.getUsedsize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getPos(i);
            System.out.println(book);
        }
    }
}
